public class StringDemo {
    public static void main(String[] args) {
        String s1="a,b,c";
        String s2=new String("a,b,c");
        String s3=new String("A,b,c");
        System.out.println(s1==s2);

        boolean result = s1.equals(s2);
        System.out.println(result);

        boolean result2 = s1.equals(s3);
        System.out.println(result2);

        boolean result3=s1.equalsIgnoreCase(s3);
        System.out.println(result3);

    }
}